package com.myjar;

import com.myjar.excel.annotation.ExcelEntity;
import com.myjar.excel.annotation.ExcelField;
import lombok.ToString;

import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;


@ExcelEntity(sheetName = "学术资源")
@ToString
public class Assets {

    private String id;

    private List<String> tag; // 标签名

    @ExcelField(order = 0, name = "项目名")
    private String name; // 项目名

    private boolean deleted = false; // true表示已经删除

    @ExcelField(order = 1, name = "2级目录名字")
    private String categoryLeafName; //2级目录名字

    @ExcelField(order = 2, name = "1级目录名字")
    private String categoryTreeName; //1级目录名字

    private String uploader; // 上传者 user 唯一账号

    @ExcelField(order = 3, name = "完整度")
    private double completeRate; // 完整度

    private Map<String, String> otherTextInfo = Collections.emptyMap(); //其他text信息

    private Map<String, String> otherFileInfo = Collections.emptyMap(); //其他file信息

    private Set<String> relative = Collections.emptySet(); // 关系人name

    private Set<String> participantNames = Collections.emptySet(); // 参与者Name

    private String author; // 第一作者

    private String date; // 立项时间

    private int importNum; // 导出次数

    public Set<String> getParticipantNames() {
        return participantNames;
    }

    public void setParticipantNames( Set<String> participantNames ) {
        this.participantNames = participantNames;
    }

    public int getImportNum() {
        return importNum;
    }

    public void setImportNum( int importNum ) {
        this.importNum = importNum;
    }

    public String getId() {
        return id;
    }

    public void setId( String id ) {
        this.id = id;
    }

    public List<String> getTag() {
        return tag;
    }

    public void setTag( List<String> tag ) {
        this.tag = tag;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted( boolean deleted ) {
        this.deleted = deleted;
    }

    public String getCategoryLeafName() {
        return categoryLeafName;
    }

    public void setCategoryLeafName( String categoryLeafName ) {
        this.categoryLeafName = categoryLeafName;
    }

    public String getCategoryTreeName() {
        return categoryTreeName;
    }

    public void setCategoryTreeName( String categoryTreeName ) {
        this.categoryTreeName = categoryTreeName;
    }

    public String getUploader() {
        return uploader;
    }

    public void setUploader( String uploader ) {
        this.uploader = uploader;
    }

    public double getCompleteRate() {
        return completeRate;
    }

    public void setCompleteRate( double completeRate ) {
        this.completeRate = completeRate;
    }

    public Set<String> getRelative() {
        return relative;
    }

    public void setRelative( Set<String> relative ) {
        this.relative = relative;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor( String author ) {
        this.author = author;
    }

    public String getDate() {
        return date;
    }

    public void setDate( String date ) {
        this.date = date;
    }

    public Map<String, String> getOtherTextInfo() {
        return otherTextInfo;
    }

    public void setOtherTextInfo( Map<String, String> otherTextInfo ) {
        this.otherTextInfo = otherTextInfo;
    }

    public Map<String, String> getOtherFileInfo() {
        return otherFileInfo;
    }

    public void setOtherFileInfo( Map<String, String> otherFileInfo ) {
        this.otherFileInfo = otherFileInfo;
    }

    public String getName() {
        return name;
    }

    public void setName( String name ) {
        this.name = name;
    }
}
